/*
 Copyright (c) 2013- MeherTJ G.
All rights reserved. Everybody can use these code freely.
 */

#pragma once

#include <map>
#include <vector>
#include <string>

namespace Zen {

	class CSV
	{
	public:
		typedef std::vector<std::vector<std::string> > Rows;
		typedef std::vector<std::string> Row;
		
		CSV();
		
		void clear();
		
		bool decode(std::string const & content);
		
		std::string encode() const;
		
		Rows & rows();
		
		Rows const & rows() const;
		
	protected:
		Rows m_rows;
	};
}
